package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsOrder;
import com.qf.vo.CategorySellAmts;
import com.qf.vo.DayStatis;
import com.qf.vo.GoodsRowsVo;
import com.qf.vo.OrderRowsVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderService {
    /**
     * 统计订单数量
     * @return
     */
    public Integer orderCount();

    /**
     * 统计近期的订单增长量
     * @param daysAgo
     * @return
     */
    public List<DayStatis> orderStatis(int daysAgo);

    /**
     * 按照分类统计销售额
     * @return
     */
    public List<CategorySellAmts> categorySellAmt();

    public IPage<DtsOrder> findAllByPage(Integer page,Integer limit,Integer orderStatusArray,String sort,String order,Integer userId,String orderSn);

    public Integer selectUidByOrderId(Integer orderId);

    public DtsOrder findByOrderId(Integer id);

    public List<OrderRowsVo> findAll();

    public List<GoodsRowsVo> queryAllGoodsStat();

}
